home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / Screen savers / Basic Black 1.3.1 Folder / Basic Black / Source / BB.h next >
Encoding:
C/C++ Source or Header  |  1994-01-25  |  2.4 KB  |  60 lines  |  [TEXT/R*ch]

  1. /**********************************************************
  2.  * typedefs
  3.  **********************************************************/
  4.  
  5. typedef pascal void (*STAProcPtr) (long, short);
  6. typedef pascal long (*GTAProcPtr) (short);
  7. typedef pascal short (*WNEProcPtr) (short, EventRecord *, long, RgnHandle);
  8. typedef pascal short (*GNEProcPtr) (short, EventRecord *);
  9. typedef pascal void (*ICProcPtr) (void);
  10. typedef pascal void (*DMBProcPtr) (void);
  11. typedef pascal void (*ERProcPtr) (Rect *);
  12. typedef pascal void (*EOProcPtr) (Rect *);
  13. typedef pascal void (*EGProcPtr) (RgnHandle);
  14. typedef pascal void (*STProcPtr) (void);
  15. typedef pascal long (*SRProcPtr) (Handle);
  16.  
  17. typedef struct {
  18.         char    privates[76];
  19.         long    randSeed;
  20.         BitMap  screenBits;
  21.         Cursor  arrow;
  22.         Pattern dkGray;
  23.         Pattern ltGray;
  24.         Pattern black;
  25.         Pattern white;
  26.         GrafPtr thePort;
  27.         long    qdend;
  28. } QDGlobals;
  29.  
  30. typedef struct PatchGlobals {
  31.     STAProcPtr        pgOldSTA;            // address of old SetTrapAddress
  32.     GTAProcPtr        pgOldGTA;            // address of old GetTrapAddress
  33.     WNEProcPtr        pgOldWNE;            // address of old WaitNextEvent
  34.     GNEProcPtr        pgOldGNE;            // address of old GetNextEvent
  35.     ICProcPtr        pgOldIC;            // address of old InitCursor
  36.     DMBProcPtr        pgOldDMB;            // address of old DrawMenuBar
  37.     ERProcPtr        pgOldER;            // address of old EraseRect
  38.     EOProcPtr        pgOldEO;            // address of old EraseOval
  39.     EGProcPtr        pgOldEG;            // address of old EraseRgn
  40.     STProcPtr        pgOldST;            // address of old SystemTask
  41.     Boolean            pgSaverOn,            // Are we asleep?
  42.                     pgPatchesIn,        // Are the sleepy-time patches set?
  43.                     pgInSleepRect,        // Is the mouse in the sleep rect?
  44.                     pgMustSleep,        // Do we need to fall asleep now?
  45.                     pgBouncingClock,    // Should there be a bouncing clock?
  46.                     pgMenubarKluge,        // Should we play with the menu bar?
  47.                     pgMustSave;            // Are we turned on?
  48.     short            pgSleepRect,        // index number of the sleep rect
  49.                     pgWakeRect,            // index number of the wake rect
  50.                     pgOldHeight;        // old menu bar height
  51.     long            pgRefreshTime,        // ticks between refreshes
  52.                     pgLastAction,        // time of last user action
  53.                     pgIdleTicks,        // idle ticks before sleep
  54.                     pgLastRefresh;        // time of last refresh
  55.     Point            pgLastMouse;        // point mouse was last at
  56.     Rect            pgCorners[4];        // corners of the main screen (rects)
  57.     Pattern            pgForePat,            // foreground pattern
  58.                     pgBackPat;            // background pattern
  59.     PicHandle        pgClockBg;            // clock background picture
  60. } PatchGlobals, *PatchGlobalsPtr;